package com.lanou.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName ClassQaQuestion
 * @Description TODO
 * @Author cuiruitong
 * @Date 2025年08月14日 19:28
 * @Version 1.0
 */
@Data
public class ClassQaQuestion {
    private Integer id;
    private String question;
    private Integer userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    private Integer courseId;

//    关联用户表
    private User user;

    // 新增：该问题的回答列表 (关键字段)
    private List<ClassQaAnswer> answers;
}
